import json

from devtools import debug
from db_base.mongodb_db.base import CollectionBase


class _Attendance(CollectionBase):

    collection_name: str = "attendance"


attendance: _Attendance = _Attendance()
""" 考勤 """

with open("./xlog_common_attendance_202308101713.json", "r") as f:
    data = json.loads(f.read())
    # debug(data)

data_list = data["xlog_common_attendance"]
debug(data_list)
attendance.collection.insert_many(data_list)
